package com.gwh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gwh.dto.DishDto;
import com.gwh.entity.Category;
import com.gwh.entity.Dish;
import sun.util.resources.ga.LocaleNames_ga;

import java.util.List;

public interface DishService extends IService<Dish> {
    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish、dish_flavor
    public void saveWithFlavor(DishDto dishDto);

    //根据id查询菜品信息和对应的口味信息
    public DishDto getByIdWithFlavor(Long id);

    //修改菜单,需要操作两张表: dish,dish_flavor
    public void updateWithFlavor(DishDto dishDto);

    //删除菜品,需要操作两张表: dish,dish_flavor
    public void deleteWithFlavor(List<Long> ids);

    //停售商品
    public void changeStatus(int id,List<Long> ids);

    //查找菜品
    public List<DishDto> selectCategory(Dish dish);
}
